/*
 * @Author: CoderLPF
 * @Date: 2020-03-23 19:50:30
 * @LastEditTime: 2020-04-23 13:30:22
 * @LastEditors: CoderLPF
 * @Description: 
 * @FilePath: \fzx-system-fd\src\api\index\announce\index.js
 */
import api from '../../index';
import urls from './urls';

const header = {};

export default {
    list(roleid) {
        // return出去了一个promise
        return api.get(urls.list, roleid, null);
    },
    add(data) {
        return api.post(urls.add, data, null, null);
    },
    addnoticerole(data) {
        return api.post(urls.addnoticerole, data, null, null);
    },
    update(data) {
        return api.post(urls.update, data, null, null);
    },
    delete(data) {
        return api.post(urls.delete, data, null, null);
    },
    deleteRoleByNotice(id) {
        return api.post(urls.deleteRoleByNotice, id, null, null);
    },
    getnoticebypath(data) {
        return api.get(urls.getnoticebypath, data, null, null);
    },
    hasread(param) {
        return api.post(urls.hasread, param, null, null);
    }
};